﻿/*
Copyright (c) 2012 Vratislav Cermak (vratacermak@gmail.com)
 
This file is part of TeachMe Project. See http://code.google.com/p/teach-me for more information.
 
TeachMe is an open source project. Using of TeachMe is free of charge.
It is distributed under GNU General Public License version 3 (GPLv3).
GPLv3 can be found at http://www.gnu.org/licenses/gpl.html.
 
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the license for more details.
*/

using System;
using System.Collections.Generic;

namespace TeachMe.Application.Configuration
{
    public class PexesoSettings
    {
        public Property<Guid> Dictionary { get; set; }
        
        public Property<int> BoardSize { get; set; }
        
        public Property<int> PlayersCount { get; set; }
        
        public Property<int> FontSize { get; set; }
        
        public List<string> UserNames { get; set; }

        public Property<bool> HighlightFirstWord { get; set; }

        public static PexesoSettings Create(Checkable parent)
        {
            PexesoSettings result = new PexesoSettings();
            result.BoardSize = new Property<int>(parent, 36);
            result.FontSize = new Property<int>(parent, 8);
            result.PlayersCount = new Property<int>(parent, 2);
            result.UserNames = new List<string>();
            result.Dictionary = new Property<Guid>(parent);
            result.HighlightFirstWord = new Property<bool>(parent, false);
            return result;
        }
    }
}
